import javaCourse from '../images/javaCourse.jpeg'
import { REFRESH_VIDEOS } from '../constant/action-type'

const initState = [
  {
    id: 1,
    isRelease: true,
    organization: '思沃校园',
    serial: 'java 基础系列',
    description: '讲解字符串相关',
    title: 'Java集合练习讲解',
    status: '公开',
    creatorId: 2,
    coverUrl: javaCourse,
    url: ''
  }
]

export default (state = initState, action) => {
  switch (action.type) {
    case REFRESH_VIDEOS:
      return action.data
    default:
      return state
  }
}
